package the.world.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import the.world.bean.Comment;
import the.world.mapper.CommentMapper;
import the.world.service.CommentService;

import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentMapper commentMapper;
    @Override
    public int insertContext(Comment comment) {
        return commentMapper.insert(comment);
    }

    @Override
    public List<Comment> selectAll() {
        return commentMapper.selectAll();
    }

}
